﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminViews/Admin.Master" AutoEventWireup="true" CodeBehind="AddRegulationst.aspx.cs" Inherits="BestBuy.AdminViews.AddRegulationst" %>

<%@ Register TagPrefix="uc" TagName="MessagePanel" Src="~/UserControls/MessagePanel.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="wrapper-content">
     <div class="form-horizontal">
       <fieldset>
            <legend>Add Regulations</legend>
              <uc:MessagePanel ID="AdminInfoMessage" runat="server" />
             <asp:ValidationSummary ID="AddRegulationstInfoValidationSummary" runat="server" CssClass="alert alert-danger" 
             ValidationGroup="AddRegulationstValidationGroup" />
                <div class= "control-group">
                    Name<div class="controls">
                    <asp:TextBox ID="Name" runat="server" />
                    <asp:RequiredFieldValidator ID="NameRequired" runat="server" ControlToValidate="Name"
                        CssClass="failureNotification" ErrorMessage="Tên quy định không được để trống."
                        ValidationGroup="AddRegulationstValidationGroup">*</asp:RequiredFieldValidator>   
                </div>
                </div>
                   <div class= "control-group">
                       Detail<div class="controls">
                        <asp:TextBox ID ="Detail" runat ="server"/>
                        <asp:RequiredFieldValidator ID ="DetailRequired" runat="server" ControlToValidate ="Detail"
                            CssClass="failureNotification" ErrorMessage="Nhập giá trị." ToolTip ="Nhập giá trị." ValidationGroup="AddRegulationstValidationGroup">*</asp:RequiredFieldValidator>
                    </div>
                </div>

                <div class="control-group">
                    <div class="controls">
                        <asp:Button ID="AddRegulationstInfoButton" runat="server" 
                            CssClass="btn btn-primary" Text="Add"
                            ValidationGroup="AddRegulationstValidationGroup"  
                            OnClientClick="hideMessagePanel()" 
                            onclick="AddRegulationstInfoButton_Click1" />
                    </div>
                </div>
        </fieldset>
   </div>
   </div>
</asp:Content>